<!DOCTYPE html>
<html lang="en">

<head>
    <title>EChart3 map demo</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/map.css" rel="stylesheet">
    <script src="http://cdn.bootcss.com/echarts/3.6.2/echarts.min.js"></script>
    <script type='text/javascript' src='/assets/js/geo/china.js'></script>
    <script type='text/javascript' src='/assets/js/geo/beijing.js'></script>

    </head>
    <body>
        <div id="main"> </div>
    
    <script>
        console.log(document.getElementById('main'));
                var chart = echarts.init(document.getElementById('main'));
                chart.setOption({
                    series: [{
                        type: 'map',
                        map: '北京'
                    }]
                });
</script>
    </body>
</html>